package dq.study.designmodel.adapter.impl.combine;

import dq.study.designmodel.adapter.Source;
import dq.study.designmodel.adapter.Target;

/**
 * @author dongqun
 * @Description:
 * @date 2019/4/20 12:21
 */
public class CombinedAdapter implements Target {

    Source source;

    public CombinedAdapter(Source source) {
        this.source = source;
    }

    @Override
    public void method1() {
        source.method1();
    }

    @Override
    public void method2() {
        System.out.println("我是聚合方式的适配器方法2");
    }
}
